﻿using Coldairarrow.Entity.backstage.GrandTickets;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.backstage.GrandTickets
{
    public interface IBS_GrantTicketBusiness
    {
        Task<PageResult<GrantTicketDTO>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<GrantTicketDTO> GetTheDataAsync(string id);
        Task<List<SelectDTO>> GetTickesAsnyc();
        Task<List<SelectDTO>> GetUsersAsnyc();
        Task SendTicketAsnyc(GrantTicket input);
        Task AddDataAsync(BS_GrantTicket data);
        Task UpdateDataAsync(BS_GrantTicket data);
        Task DeleteDataAsync(List<string> ids);
    }

    public class GrantTicketDTO:BS_GrantTicket
    {
        public string NickName { get; set; }
        public string RaleName { get; set; }
        public int? Sex { get; set; }
        public string Phone { get; set; }
    }

    public class GrantTicket { 
        public string ValiTacketId { set; get; }
        public List<string> UserIds { set; get; }
        public int TicketNum { set; get; } = 1;
    }

    public class SelectDTO { 
        public string Id { get; set; }

        public string Text { get; set; }
    }


}